package marchsoft.modules.selfFish.pisciculture.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import marchsoft.modules.selfFish.pisciculture.entity.CommunityCommunication;
import marchsoft.modules.selfFish.pisciculture.entity.vo.CommunityCommunicationVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.cache.annotation.CacheConfig;

/** 社区交流
 * @title CommunityCommunicationMapper
 * @description 社区交流
 * @author Lenovo
 * @version 1.0
 * @create 2024-07-15 17:02
 */
@Mapper
@CacheConfig(cacheNames = "communityCommunication")
public interface CommunityCommunicationMapper extends BaseMapper<CommunityCommunication> {

    /** 查询
     * @param content: 内容
     * @param page: 分页对象
     * @return IPage<CommunityCommunicationVo> 分页数据
     * @description:  获取社区交流列表
     */
    IPage<CommunityCommunicationVo> getCommunityCommunicationList(Page page, @Param("content") String content);
}
